<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       Cake.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php echo $this->Html->charset(); ?>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<?php if (Configure::read('debug') == 0 && $url!='/blank/') { ?>
<meta http-equiv="Refresh" content="<?php echo $pause; ?>;url=<?php echo $url; ?>"/>
<?php } ?>
<title>提示信息</title>
<style type="text/css">
<!--
* {
	padding: 0;
	margin: 0;
	font-size: 12px
}

a:link,a:visited {
	text-decoration: none;
	color: #0068a6
}

a:hover,a:active {
	color: #ff6600;
	text-decoration: underline
}

.showMsg {
	border: 1px solid #1e64c8;
	zoom: 1;
	width: 450px;
	height: 172px;
	position: absolute;
	top: 44%;
	left: 50%;
	margin: -87px 0 0 -225px
}

.showMsg h5 {
	background-image: url(/img/msg_img/msg.png);
	background-repeat: no-repeat;
	color: #fff;
	padding-left: 35px;
	height: 25px;
	line-height: 26px;
	*line-height: 28px;
	overflow: hidden;
	font-size: 14px;
	text-align: left
}

.showMsg .content {
	padding: 46px 12px 10px 45px;
	font-size: 14px;
	height: 64px;
	text-align: left
}

.showMsg .bottom {
	background: #e4ecf7;
	margin: 0 1px 1px 1px;
	line-height: 26px;
	*line-height: 30px;
	height: 26px;
	text-align: center
}

.showMsg .ok,.showMsg .guery {
	background: url(/img/msg_img/msg_bg.png)
		no-repeat 0px -560px;
}

.showMsg .guery {
	background-position: left -460px;
}
-->
</style>
<?php
	echo $this->Html->script('jquery.js');
	echo $this->Html->script('common.js'); 
?>
</head>
<body>
	<div class="showMsg" style="text-align: center">
		<h5>提示信息</h5>
		<div class="content guery" id="cloading"
			style="display: inline-block; display: -moz-inline-stack; zoom: 1; *display: inline; max-width: 330px">
			<?php echo $message; ?><?php if($url=='/blank/'){ ?><font color="red"><b><span id="secondid">2</span></b> 秒后自动关闭</font><?php } ?>
		</div>
		<div class="bottom">
			<?php if($url=='/blank/'){?>
				<a href="javascript:;" onClick="window.close();">如果您的浏览器没有自动跳转，请点击这里</a>
			<?php }else{ ?>
				<a href="<?php echo $url; ?>">如果您的浏览器没有自动跳转，请点击这里</a>
			<?php } ?>
			<script language="javascript">
				<?php if($url=='/blank/'){?>
					window.opener.location.reload();
					function set_time() {
						$("#secondid").html("1");
					}
					setTimeout("set_time()", 500);
					setTimeout("window.close()", 1200);
				<?php }else{ ?>
					setTimeout("redirect('<?php echo $url; ?>');", <?php echo $pause; ?>);
				<?php } ?>
			</script>
		</div>
	</div>
</body>
</html>